<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!--
        Vue 指令 v-bind
        1.作用: 动态的设置html的标签属性  src url title...
        2.语法: v-bind:属性名="表达式"
    -->
    <div id="app">
        <!--img v-bind:src="imgUrl" v-bind:title="msg" alt=""/-->
        <img :src="imgUrl" :title="msg" alt=""/>
    </div>

    <script src="../lib/vue.js"></script>

    <script>
        const app = new Vue({
            el: "#app",
            data() {
                return {
                    imgUrl : "../imgs/10-02.png",
                    msg: "hello 波仔"
                }
            },
            methods: {
            }

        })
    </script>
</body>

</html>